<head th:fragment="headerCss">
    <meta charset="utf-8">
    <title>湖南金职伟业母婴护理有限公司</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta name="keywords" content=""/>
    <meta name="description"
          content="湖南金职伟业母婴护理有限公司"/>
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <!-- Bootstrap CSS File -->
    <!--<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">-->
    <link rel="stylesheet" href="/css/examination/common.css">
    <link href="/css/font-awesome.css?v=4.4.0"
          th:href="@{/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
    <!-- Google Fonts -->
    <link rel="shortcut icon" href="favicon.ico">
</head>
<body class="signin">
<style>


</style>
<div class="header">
    <a href="javascript:;" class="logo">
        <img src="/img/logo2.png" style="width:217px;height:49px" alt="logo">
        <!--<p>1+X证书制度试点工作</p>-->
        <p id="title"></p>
    </a>
</div>
<div class="main_content has_back">
    <div class="window_box">
        <div class="toptit"><label>考试异常恢复</label></div>
        <div class="loginIn">
            <div class="item">
                <input type="text" id="ticketNumber" placeholder="请输入准考证号" autocomplete="new-password" class="layui-input">
            </div>
            <div class="item">
                <input type="password" id="password" placeholder="请输入口令" autocomplete="new-password" class="layui-input">
            </div>
            <div class="item">
                <a href="javascript:;" class="layui-btn layui-btn-fluid layui-btn-danger" onclick="login()" id="submitBtn">恢复考试</a>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
<script src="/js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}"></script>
<script type="text/javascript">
    if(window.localStorage){
        $("#title").html(JSON.parse(window.localStorage.getItem("intro")).name+' | 在线考试');
    }else{
        layer.msg("请换浏览器，最佳为谷歌")
    }
    function login() {
        var password = $("#password").val();
        var ticketNumber = $("#ticketNumber").val();
        if(''==password){
            layer.msg('请输入口令');
            return false
        }
        if(''==ticketNumber){
            layer.msg('请输入准考证号');
            return false
        }
        location.href = '/examination/startExam'
        // var username = $("#name").val();
        // var password = $("#password").val();
        // if(''==username){
        //     layer.msg('请输入用户名');
        //     return false
        // }
        // if(''==password){
        //     layer.msg('请输入密码');
        //     return false
        // }
        // $.ajax({
        //     type: "POST",
        //     url: "/certificate/sendLogin",
        //     data: {username:username , password:password},
        //     success: function (r) {
        //         if (r.code == 0) {
        //             if(document.referrer !=''){
        //                 if(document.referrer.indexOf('/certificate/forgetPass')){
        //                     location.href='/certificate/homepage'
        //                 }else{
        //                     location.href=document.referrer
        //                 }
        //             }else{
        //                 location.href='/certificate/homepage'
        //             }
        //         } else {
        //             layer.msg(r.msg);
        //         }
        //     }
        // });
    }

</script>

</body>





